#define _CRT_SECURE_NO_WARNINGS   1

#include<iostream>
#include<vector>
using namespace std;
class Solution
{
public:
	vector<int> MySort(vector<int>& arr)
	{
		int n = arr.size();
		for (int i = 0; i < n; i++)
		{
			int minn = arr[i];
			int mini = i;
			for (int j = i + 1; j < n; j++)
			{
				if (arr[j] <minn)
				{
					minn = arr[j];
					mini = j;
				}
			}
			swap(arr[i], arr[mini]);
		}
		return arr;
	}
};
int main()
{
	Solution sol;
	int num;
	vector<int>a;
	while (cin.get() != '\n')
	{
		cin >> num;
		a.push_back(num);
	}
	vector<int>b = sol.MySort(a);
	for (auto e : b)
	{
		cout << e << "   ";
	}
	cout << endl;
}